<?php

namespace Platform\Models\Scenario;

use Platform\Models\BaseModel;

class ScenarioTreeNode extends BaseModel {

    const TABLE_NAME = 'scenario_tree_node';

    public function initialize() {
        parent::initialize();
        $this->setSource(self::TABLE_NAME);
    }

    private $id;
    private $scenarioId;
    private $forestId;
    private $nodeId;
    private $pid;
    private $jumpId;

    public function getId() {
        return $this->id;
    }

    public function getScenarioId() {
        return $this->scenarioId;
    }

    public function getForestId() {
        return $this->forestId;
    }

    public function getNodeId() {
        return $this->nodeId;
    }

    public function getPid() {
        return $this->pid;
    }

    public function getJumpId() {
        return $this->jumpId;
    }

    public function setId($id) {
        $this->id = $id;
    }

    public function setScenarioId($scenarioId) {
        $this->scenarioId = $scenarioId;
    }

    public function setForestId($forestId) {
        $this->forestId = $forestId;
    }

    public function setNodeId($nodeId) {
        $this->nodeId = $nodeId;
    }

    public function setPid($pid) {
        $this->pid = $pid;
    }

    public function setJumpId($jumpId) {
        $this->jumpId = $jumpId;
    }

    public function columnMap() {
        //列名 =》 属性名
        return [
            "id" => "id",
            "scenario_id" => "scenarioId",
            "node_id" => "nodeId",
            "pid" => "pid",
            "jump_id" => "jumpId",
            "forest_id" => "forestId",
        ];
    }

}
